package model;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: lishuo
 * Date: 2024-04-03
 * Time: 22:28
 */
public class User {
    // id
    private int id;
    // 用户名/邮箱
    private String email;
    // 密码
    private String password;
    // 用户名
    private String userName;
    // 手机号码
    private String phone;


    public User() {
    }

    public User(int id, String email, String password, String userName, String phone) {
        this.id = id;
        this.email = email;
        this.password = password;
        this.userName = userName;
        this.phone = phone;
    }

    /**
     * 获取
     * @return id
     */
    public int getId() {
        return id;
    }

    /**
     * 设置
     * @param id
     */
    public void setId(int id) {
        this.id = id;
    }

    /**
     * 获取
     * @return email
     */
    public String getEmail() {
        return email;
    }

    /**
     * 设置
     * @param email
     */
    public void setEmail(String email) {
        this.email = email;
    }

    /**
     * 获取
     * @return password
     */
    public String getPassword() {
        return password;
    }

    /**
     * 设置
     * @param password
     */
    public void setPassword(String password) {
        this.password = password;
    }

    /**
     * 获取
     * @return userName
     */
    public String getUserName() {
        return userName;
    }

    /**
     * 设置
     * @param userName
     */
    public void setUserName(String userName) {
        this.userName = userName;
    }

    /**
     * 获取
     * @return phone
     */
    public String getPhone() {
        return phone;
    }

    /**
     * 设置
     * @param phone
     */
    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String toString() {
        return "User{id = " + id + ", email = " + email + ", password = " + password + ", userName = " + userName + ", phone = " + phone + "}";
    }
}
